home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume25 / screen3 / part06 < prev    next >
Encoding:
Text File  |  1991-12-19  |  62.6 KB  |  1,736 lines

  1. Newsgroups: comp.sources.unix
  2. From: jnweiger@immd4.informatik.uni-erlangen.de (Juergen Weigert)
  3. Subject: v25i046: Screen3 - multiple windows on an ASCII terminal, Part06/08
  4. Sender: sources-moderator@pa.dec.com
  5. Approved: vixie@pa.dec.com
  6.  
  7. Submitted-By: jnweiger@immd4.informatik.uni-erlangen.de (Juergen Weigert)
  8. Posting-Number: Volume 25, Issue 46
  9. Archive-Name: screen3/part06
  10.  
  11. #! /bin/sh
  12. # This is a shell archive.  Remove anything before this line, then unpack
  13. # it by saving it into a file and typing "sh file".  To overwrite existing
  14. # files, type "sh file -c".  You can also feed this as standard input via
  15. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  16. # will see the following message at the end:
  17. #        "End of archive 6 (of 8)."
  18. # Contents:  screen.1
  19. # Wrapped by vixie@cognition.pa.dec.com on Thu Dec 19 17:36:06 1991
  20. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  21. if test -f 'screen.1' -a "${1}" != "-c" ; then 
  22.   echo shar: Will not clobber existing file \"'screen.1'\"
  23. else
  24. echo shar: Extracting \"'screen.1'\" \(61578 characters\)
  25. sed "s/^X//" >'screen.1' <<'END_OF_FILE'
  26. X.if n .ds Q \&"
  27. X.if n .ds U \&"
  28. X.if t .ds Q ``
  29. X.if t .ds U ''
  30. X.TH SCREEN 1 "28 August 1991"
  31. X.UC 4
  32. X.SH NAME
  33. screen \- screen manager with VT100/ANSI terminal emulation
  34. X.SH SYNOPSIS
  35. X.B screen
  36. X[
  37. X.B -\fIoptions\fP
  38. X] [
  39. X.B \fIcmd\fP
  40. X[
  41. X.B \fIargs\fP
  42. X] ]
  43. X.br
  44. X.B screen \-r
  45. X[
  46. X.BR \fIhost.tty\fP
  47. X]
  48. X.ta .5i 1.8i
  49. X.SH DESCRIPTION
  50. X.I Screen
  51. is a full-screen window manager that
  52. multiplexes a physical terminal between several processes (typically
  53. interactive shells).
  54. XEach virtual terminal provides the functions
  55. of the DEC VT100 terminal and, in addition, several control functions
  56. from the ANSI X3.64 (ISO 6429) and ISO 2022 standards
  57. X(e.\|g. insert/delete line and support for multiple character sets).
  58. There is a scrollback history buffer for each virtual terminal and a 
  59. copy-and-paste mechanism that allows moving text regions between
  60. windows.
  61. X.PP
  62. When
  63. X.I screen
  64. is called, it creates a single window with a shell in it (or the specified
  65. command) and then gets out of your way so that you can use the program as you
  66. normally would.
  67. Then, at any time, you can create new (full-screen) windows with other programs
  68. in them (including more shells), kill existing windows, view a list of the
  69. current windows, turn output logging on and off, copy-and-paste text between
  70. windows, view the scrollback history, switch between windows
  71. in whatever manner you wish, etc.
  72. When a program terminates,
  73. X.I screen
  74. kills the window that contained it.
  75. If this window was in the foreground, the display switches to the previous
  76. window; if none are left,
  77. X.I screen
  78. exits.
  79. X.PP
  80. XEverything you type is sent to the program running in the current window.
  81. The only exception to this is the one keystroke that is used to initiate
  82. a command to the window manager.
  83. By default, each command begins with a control-a (abbreviated C-a from
  84. now on), and is followed by one other keystroke.
  85. The command character and all the key bindings can be fully customized
  86. to be anything you like, though they are always two characters in length.
  87. X.PP
  88. The standard way to create a new window is to type \*QC-a c\*U.
  89. This creates a new window running a shell and switches to that
  90. window immediately, regardless of the state of the process running
  91. in the current window.
  92. Similarly, you can create a new window with a custom command in it by
  93. first binding the command to a keystroke (in your .screenrc file) and
  94. then using it just like the \*QC-a c\*U command.
  95. In addition, new windows can be created by running a command like:
  96. X.IP
  97. screen emacs prog.c
  98. X.PP
  99. from a shell prompt within a previously created window.
  100. This will not run another copy of 
  101. X.IR screen ,
  102. but will instead supply the
  103. command name and its arguments to the window manager who will use it to
  104. create the new window.
  105. The above example would start the emacs editor (editing prog.c) and switch
  106. to its window.
  107. X.PP
  108. If \*Q/etc/utmp\*U is writable by
  109. X.IR screen ,
  110. an appropriate record will be written to this file for each window, and
  111. removed when the window is terminated.
  112. This is useful for working with \*Qtalk\*U, \*Qscript\*U, \*Qshutdown\*U,
  113. X\*Qrsend\*U, \*Qsccs\*U and other similar programs that use the utmp
  114. file to determine who you are. As long as 
  115. X.I screen
  116. is active on your terminal,
  117. the terminals own record is removed from the utmp file. See also \*QC-a L\*U.
  118. X.SH GETTING STARTED
  119. Before you begin to use
  120. X.I screen
  121. you'll need to make sure you have correctly selected your terminal type,
  122. just as you would for any other termcap/terminfo program.
  123. X(You can do this by using
  124. X.IR tset
  125. or
  126. X.IR stty , 
  127. for example.)
  128. X.PP
  129. If you're impatient and want to get started without doing a lot more reading,
  130. you should remember this one command:  \*QC-a ?\*U.
  131. Typing these two characters will display a list of the available
  132. X.I screen
  133. commands and their bindings. Each keystroke is discussed in
  134. the section \*QCOMMAND KEYS\*U. The manual section \*QCUSTOMIZATION\*U 
  135. deals with the contents of your .screenrc.
  136. X.PP
  137. If possible, choose a version of your terminal's termcap that has automatic
  138. margins turned \fIoff\fP.
  139. This will ensure an accurate and optimal update of the screen
  140. in all circumstances.
  141. The next best thing is an auto-margin terminal that allows the last position
  142. on the screen to be updated without scrolling the screen (such as a vt100).
  143. This also allows the entire screen to be updated.
  144. Lastly, if all you've got is a \*Qtrue\*U auto-margin terminal
  145. X.I screen
  146. will be content to use it, but updating a character put into the last position
  147. on the screen may not be possible until the screen scrolls or the character
  148. is moved into a safe position in some other way.
  149. This delay can be shortened by using a terminal with insert-character
  150. capability.
  151. X.PP
  152. If your terminal is of the second type (firm-margined `am'), you will
  153. want to let
  154. X.I screen
  155. know about this, since a normal termcap doesn't distinguish this type of
  156. automatic margins from a \*Qtrue\*U `am' terminal.
  157. You do this by specifying the `LP' capability in your termcap
  158. X(see the \*Qtermcap\*U .screenrc command), or by using the
  159. X.B \-L
  160. command-line option.
  161. X.I Screen
  162. needs this information to correctly update the screen.
  163. X.PP
  164. If you are using a \*Qtrue\*U auto-margin terminal (no `LP') at low baud
  165. rates, you may want to turn on a more optimal output mode by including the
  166. flag `OP' in your termcap entry, or by specifying the
  167. X.B \-O
  168. command-line option.
  169. The trade-off is that
  170. X.I screen
  171. will no-longer accurately emulate the vt100's line-end quirks (e.\|g. the
  172. screen will scroll after putting \fIone\fP character in the last screen
  173. position).
  174. X.SH "COMMAND KEYS"
  175. As mentioned, each
  176. X.I screen
  177. command consists of a
  178. X\*QC-a\*U followed by one other character.
  179. XFor your convenience, all commands that are bound to lower-case letters are
  180. also bound to their control character counterparts (with the exception
  181. of \*QC-a a\*U; see below), thus, \*QC-a c\*U as well as \*QC-a C-c\*U can
  182. be used to create a window.
  183. X.PP
  184. The following keystroke commands are available:
  185. X.IP "\fBC-a 0\fP  -  \fBC-a 9\fP   (select0 - select9)"
  186. Switch to the window with the number 0 through 9.
  187. When a new window is established, the first available number from the
  188. range 0..9 is assigned to this window.
  189. Thus, the first window can be activated by \*QC-a 0\*U (there can be no more
  190. than 10 windows present at any one time).
  191. X.IP "\fBC-a C-a\fP   (other)"
  192. Switch to the window displayed previously.
  193. Note that this function defaults to the command character typed twice,
  194. unless overridden; for instance, if you use the option \*Q\fB\-e]x\fP\*U,
  195. this function becomes \*Q]]\*U, not \*Q]C-a\*U.
  196. X.IP "\fBC-a a\fP\0\0\0\0\0"
  197. Send the command character (C-a) to the processes in the current window.
  198. X.IP "\fBC-a A\fP   (aka)"
  199. Allow the user to enter an a.\|k.\|a (also-known-as). for the current window.
  200. X.IP "\fBC-a c\fP  or  \fBC-a C-c\fP   (shell)"
  201. Create a new window with a shell and switch to that window.
  202. X.IP "\fBC-a C\fP   (clear)"
  203. Clear the screen.
  204. X.IP "\fBC-a d\fP  or  \fBC-a C-d\fP   (detach)"
  205. Detach
  206. X.I screen
  207. X(disconnect it from the terminal and put it into the background).
  208. A detached
  209. X.I screen
  210. can be resumed by invoking
  211. X.I screen
  212. with the
  213. X.B \-r
  214. option. (See also section \*QCOMMAND-LINE OPTIONS\*U.)
  215. X.IP "\fBC-a D D\fP   (pow_detach)"
  216. Power detach. Mainly the same as above, but also sends a HANGUP signal to
  217. the parent process of
  218. X.IR screen .
  219. CAUTION: This will result in a logout, when 
  220. X.I screen
  221. was started from your login shell.
  222. X.IP "\fBC-a f\fP  or  \fBC-a C-f\fP   (flow)"
  223. Toggle the current window's flow-control setting.
  224. X.IP "\fBC-a C-g\fP   (vbell)"
  225. Toggles 
  226. X.I screen's visual bell mode. If your terminal does not support
  227. a visual bell, a `vbell-message' is displayed in the status line. 
  228. X.IP "\fBC-a h\fP  or  \fBC-a C-h\fP   (hardcopy)"
  229. Write a hardcopy of the current window to the file \*Qhardcopy.\fIn\fP\*U
  230. in the window's default directory, where \fIn\fP is the number
  231. of the current window. 
  232. X.IP "\fBC-a H\fP   (log)"
  233. Begins/ends logging of the current window to the file \*Qscreenlog.\fIn\fP\*U
  234. in the window's default directory, where \fIn\fP is the number
  235. of the current window.
  236. The session log is appended to the previous contents of the file
  237. if it already exists. 
  238. The current contents and the contents of the scrollback history are not
  239. included in the session log.
  240. X.IP "\fBC-a i\fP  or  \fBC-a C-i\fP   (info)"
  241. Uses the message line to display some information about the current window:
  242. the cursor position in the form \*Q(column,row)\*U starting with \*Q(1,1)\*U,
  243. the terminal width and height plus the size of the scrollback buffer in lines, 
  244. like in \*U(80,24)+50\*U, various flag settings (flow-control, insert mode,
  245. origin
  246. mode, wrap mode, application-keypad mode, output logging, and activity
  247. monitoring (`+' indicates enabled, `-' not)),
  248. the currently active character set (\fIG0\fP, \fIG1\fP, \fIG2\fP,
  249. or \fIG3\fP), and in square brackets the the terminal character sets that are
  250. currently designated as \fIG0\fP through \fIG3\fP.
  251. XFor system information use \*QC-a t\*U.
  252. X.IP "\fBC-a k\fP  or  \fBC-a C-k\fP   (kill)"
  253. Kill the current window and switch to the previously displayed window.
  254. Note:
  255. X.I Emacs
  256. users should keep this command in mind, when killing a line.
  257. It is recommended not to use \*QC-a\*U as the
  258. X.I screen
  259. escape key or that kill is rebinded to \*QC-a K\*U.
  260. X.IP "\fBC-a l\fP  or  \fBC-a C-l\fP   (redisplay)"
  261. Redisplay the current window.
  262. X.IP "\fBC-a L\fP   (login)"
  263. Adds or removes the entry in /etc/utmp file for the current window.
  264. This controls if the window is `logged in'. See also above.
  265. Additionally to that toggle, it is convenient having a `log in' and a `log out'
  266. key. E.\|g. `bind I set login on' and `bind O set login off' will map these
  267. keys to be C-a I and C-a O.
  268. X.IP "\fBC-a m\fP  or  \fBC-a C-m\fP   (lastmsg)"
  269. Repeat the last message displayed in the message line.
  270. Useful if you're typing when a message appears, because (unless your terminal
  271. has a status line) the message goes away when you press a key.
  272. X.IP "\fBC-a M\fP   (monitor)"
  273. Toggles monitoring of the current window.
  274. When monitoring is turned on and the affected window is switched into the
  275. background, you will receive the activity notification message in the
  276. status line at the first sign of output and the window will also be marked
  277. with an `@' in the window-status display.
  278. Monitoring is initially off for all windows.
  279. X.IP "\fBC-a space\fP  or  \fBC-a n\fP  or  \fBC-a C-n\fP   (next)"
  280. Switch to the next window.
  281. This function can be used repeatedly to cycle through the list of windows.
  282. X(Some terminals require you to release the control key before pressing space.)
  283. X.IP "\fBC-a p\fP  or  \fBC-a C-p\fP   (prev)"
  284. Switch to the previous window (the opposite of \fBC-a n\fP).
  285. X.IP "\fBC-a q\fP  or  \fBC-a C-q\fP   (xon)"
  286. Send a control-q to the program in the current window.
  287. X.IP "\fBC-a r\fP  or  \fBC-a C-r\fP   (wrap)"
  288. Toggle the current window's line-wrap setting (turn the current window's
  289. automatic margins on and off).
  290. X.IP "\fBC-a s\fP  or  \fBC-a C-s\fP   (xoff)"
  291. Send a control-s to the program in the current window.
  292. X.IP "\fBC-a t\fP  or  \fBC-a C-t\fP   (time)"
  293. Uses the message line to display the time of day, the host name, and the load
  294. averages over 1, 5, and 15 minutes (if this is available on your system).
  295. XFor window specific information use \*QC-a i\*U.
  296. X.IP "\fBC-a v\fP  or  \fBC-a C-v\fP   (version)"
  297. Display the version and compilation date.
  298. X.IP "\fBC-a w\fP  or  \fBC-a C-w\fP   (windows)"
  299. Uses the message line to display a list of all the windows.
  300. XEach window is listed by number with the name of process that has been
  301. started in the window (or its a.\|k.\|a.);
  302. the current window is marked with a `*';
  303. the previous window is marked with a `-';
  304. all the windows that are \*Qlogged in\*U are marked with a `$';
  305. a background window that has received a bell is marked with a `!';
  306. a background window that is being monitored and has had activity occur
  307. is marked with an `@';
  308. a window which has output logging turned on is marked with `(L)'.
  309. X.IP "\fBC-a W\fP   (width)"
  310. Toggle the window width between 80 and 132 columns. As this command became
  311. a toggle, \*QC-a N\*U is no longer supported.
  312. This requires a capable terminal and the termcap entries \*QZ0\*U and \*QZ1\*U.
  313. See the \*Qtermcap\*U command in section \*QCUSTOMIZATION\*U 
  314. for more information.
  315. X.IP "\fBC-a x\fP  or  \fBC-a C-x\fP   (lock)"
  316. Call a screenlock program (/local/bin/lck or /usr/bin/lock or a builtin, if no
  317. other is available). Screen does not accept any command keys until this program
  318. terminates. Meanwhile processes in the windows may continue, as the windows 
  319. are in the `detached' state. The screenlock program may be changed through the
  320. environment variable $LOCKPRG (which must be set in the shell from which 
  321. X.I screen
  322. is started) and is executed with the user's uid and gid.
  323. X.IP "\fBC-a z\fP  or  \fBC-a C-z\fP   (suspend)"
  324. Suspend
  325. X.IR screen .
  326. The windows are in the `detached' state, while 
  327. X.IR screen
  328. is suspended.
  329. X.IP "\fBC-a Z\fP   (reset)"
  330. Reset the virtual terminal to its \*Qpower-on\*U values.
  331. X.IP "\fBC-a .\fP   (termcap)"
  332. Write the termcap entry for the virtual terminal of the currently active
  333. window to the file \*Q.termcap\*U in the user's \*Q$HOME/.screen\*U directory
  334. X(or wherever 
  335. X.I screen
  336. stores it's sockets. See the \*QFILES\*U section below).
  337. This termcap entry is identical to the value of the environment variable
  338. X$TERMCAP that is set up by
  339. X.I screen
  340. for each window. For terminfo based systems you will need to run a converter
  341. like 
  342. X.IR captoinfo
  343. and then compile the entry with 
  344. X.IR tic .
  345. X.IP "\fBC-a /\fP   (autoflow)"
  346. Toggle the current window's autoflow setting between manual and auto.
  347. Autoflow mode assumes that when a program turns on the application keypad
  348. that you want flow-control temporarily turned off (though it is still
  349. possible to toggle flow-control manually).
  350. X.IP "\fBC-a ?\fP   (help)"
  351. Displays a help screen showing you all the key bindings.
  352. The first pages list all the internal commands followed by their bindings.
  353. Subsequent pages will display the custom commands, one command per key.
  354. Press space when you're done reading each page, or return to exit early.
  355. All other characters are ignored, except for the command character, which will
  356. exit the help display and begin a command.
  357. X.IP "\fBC-a C-\e\fP   (quit)"
  358. Kill all windows and terminate
  359. X.IR screen .
  360. Note that on vt100-style terminals the keys C-4 and C-\e are identical.
  361. So be careful not to write C-a C-4 when selecting window no. 4.
  362. Use the empty bind command (as in \*Qbind '^\'\*U) to remove a key binding.
  363. X.IP "\fBC-a :\fP   (colon)"
  364. Allows you to enter \*Q.screenrc\*U command lines as well as names of 
  365. key-bound-functions. Useful for on-the-fly modification of key bindings, 
  366. specific window creation and changing settings. Settings of the current window
  367. can be changed by prepending the command (if appropriate) with the keyword
  368. X\*Qset\*U.  If you consider this as the `Ex command mode' of 
  369. X.IR screen ,
  370. you may regard \*QC-a esc\*U as it's `Vi command mode'.
  371. X.IP "\fBC-a [\fP  or  \fBC-a C-[\fP  or  \fBC-a esc\fP   (copy)"
  372. XEnter copy/scrollback mode. This allows you to copy text from the current
  373. window and it's history into the paste buffer. In this mode a vi-like
  374. X`full screen editor' is active:
  375. X.br
  376. X.IR "Movement keys" :
  377. X.br
  378. X\fBh\fP, \fBj\fP, \fBk\fP, \fBl\fP move the cursor line by line or column by column.
  379. X.br
  380. X\fB0\fP, \fB^\fP and \fB$\fP move to the leftmost column, to the first or last
  381. non-whitespace
  382. character on the line.
  383. X.br
  384. X\fBH\fP, \fBM\fP and \fBL\fP move the cursor to the leftmost column
  385. of the top, center or bottom line of the window. 
  386. X.br
  387. X\fB+\fP and \fB-\fP positions one line up and down.
  388. X.br
  389. X\fBG\fP moves to the specified absolute line (default: end of buffer).
  390. X.br 
  391. X\fB|\fP moves to the specified absolute column.
  392. X.br
  393. X\fBw\fP, \fBb\fP, \fBe\fP move the cursor word by word.
  394. X.br 
  395. X\fBC-u\fP and \fBC-d\fP scroll the display up/down by the specified amount of 
  396. lines while preserving the cursor position. (Default: half screenfull). 
  397. X.br
  398. X\fBC-b\fP and \fBC-f\fP scroll the display up/down a full screen.
  399. X.br
  400. X\fBg\fP moves to the beginning of the buffer, whereas
  401. X.br
  402. X\fB%\fP jumps to the specified percentage.
  403. X.br
  404. X.IR Note :
  405. XEmacs style movement keys can be customized by a .screenrc command. (E.\|g.
  406. markkeys "h=^B:l=^F:$=^E") There is no simple method for a full emacs-style
  407. keymap, as this involves multicharacter codes.
  408. X.IR Marking :
  409. X.br
  410. The copy range is specified by setting two marks. The text between these marks 
  411. will be highlighted. Press \fBspace\fP to set the first or second mark
  412. respectively.
  413. X.br
  414. X\fBY\fP and \fBy\fP can be used to mark one whole line or to mark from 
  415. start of line.
  416. X.br
  417. X\fBW\fP marks exactly one word. 
  418. X.br 
  419. X.IR "Repeat count" :
  420. X.br
  421. Any of these commands can be prefixed with a number (by pressing digits 
  422. X\fB0\fP..\fB9\fP) which
  423. is taken as a repeat count. Example: \*QC-a C-[ H 10 j 5 Y\*U will copy lines
  424. X11 to 15 into the pastebuffer.
  425. X.br
  426. X.IR Specials :
  427. X.br
  428. There are however some keys that act differently here and in
  429. X.IR vi .
  430. X.I Vi
  431. does not allow to yank rectangular blocks of text, but
  432. X.I screen
  433. does. Press 
  434. X.br
  435. X\fBc\fP or \fBC\fP to set the left or right margin respectively. If no repeat count is
  436. given, both default to the current cursor position. Try this on a rather 
  437. full text screen as an example: 'C-A [ S-M 20 l SPACE c 10 l 5 j S-C SPACE'.
  438. X.br
  439. X\fBJ\fP joins lines. It toggles between 
  440. X3 modes: lines separated by a newline character (012), lines glued seamless,
  441. lines separated by a single whitespace. Note that you can prepend the newline
  442. character with a carriage return character, by issuing a \*Qset crlf on\*U.
  443. X.br
  444. X\fBv\fP is for all the
  445. X.I vi 
  446. users with \*Q:set numbers\*U - it toggles the left margin between column 9
  447. and 1.
  448. X.br
  449. Press \fBa\fP before the final space key to toggle in append mode. Thus
  450. the contents of the pastebuffer will not be overwritten, but appended to.
  451. X.br
  452. X\fBA\fP toggles in append mode and sets a (second) mark.
  453. X.br
  454. X\fB>\fP sets the (second) mark and writes the contents of the copybuffer to
  455. the file /tmp/screen-exchange once copy-mode is finished. This example
  456. demonstrates how to dump the whole scrollback buffer to file: 'C-A
  457. X[ g SPACE G $ >'
  458. X.br
  459. X\fB?\fP gives information about the current line and column.
  460. X.IP "\fBC-a ]\fP  or  \fBC-a C-]\fP   (paste)"
  461. Paste. Write the contents of the paste buffer to the stdin queue of the
  462. current window.
  463. X.IP "\fBC-a {\fP   (history)"
  464. Usually users work with a shell that allows easy access to previous commands.
  465. XE.g. csh has the command \*Q!!\*U to repeat the last command executed. 
  466. X.I Screen
  467. allows you to have a primitive way of re-calling \*Qthe command that
  468. started ...\*U: You just type the first letter of that command, then hit
  469. X`C-a {' and
  470. X.I screen
  471. tries to find a previous line that matches with the `prompt character' 
  472. to the left of the cursor. This line is pasted into this window's input queue.
  473. Thus you have a crude command history (made up by the visible window and it's
  474. scrollback buffer). 
  475. X.IP "\fBC-a >\fP   (write_buffer)"
  476. Writes the contents of the paste buffer to a public accessible screen-exchange
  477. file. This is thought of as a primitive means of communication between
  478. X.I screen
  479. users on the same host. See also \*QC-a esc\*U.
  480. X.IP "\fBC-a <\fP   (read_buffer)"
  481. Reads the screen-exchange file into the pastebuffer. See also \*QC-a ]\*U.
  482. X.IP "\fBC-a =\fP   (kill_buffer)"
  483. Removes the exchange file used by \*QC-a <\*U and \*QC-a >\*U.
  484. X.SH "COMMAND-LINE OPTIONS"
  485. Screen has the following command-line options:
  486. X.TP 5
  487. X.B \-a
  488. include \fIall\fP capabilities (with some minor exceptions) in each
  489. window's termcap, even if
  490. X.I screen
  491. must redraw parts of the display in order to implement a function.
  492. X.TP 5
  493. X.B "\-c \fIfile\fP"
  494. override the default configuration file from \*Q$HOME/.screenrc\*U
  495. to \fIfile\fP.
  496. X.TP 5
  497. X.B "\-d\fP|\fB\-D \fP[\fIhost.tty\fP\]\fB"
  498. does not start
  499. X.IR screen ,
  500. but detach the elsewhere running 
  501. X.I screen
  502. session. It has the same effect as typing \*QC-a d\*U from 
  503. X.I screen's
  504. controlling terminal. \fB-D\fP is the equivalent to the power detach key.
  505. If no session can be detached, this option is ignored. 
  506. The combination \*Qscreen -D -r\*U can be used to `transport' the elsewhere 
  507. running session to this terminal and logout there. 
  508. Note: It is a good idea to have the status of your sessions checked by means of
  509. X\*Qscreen -list\*U.
  510. X.TP 5
  511. X.B "\-e \fIxy\fP"
  512. specifies the command character to be \fIx\fP and the character generating a
  513. literal command character to \fIy\fP (when typed after the command character).
  514. The default is \*QC-a\*U and `a', which can be specified as \*Q-e^Aa\*U.
  515. See the \*Qescape\*U .screenrc command for more details.
  516. X.TP 5
  517. X.B "\-f\fP, \fB\-fn\fP, and \fB\-fa"
  518. turns flow-control on, off, or \*Qon with automatic switching\*U.
  519. This can also be defined through the \*Qflow\*U .screenrc command.
  520. X.TP 5
  521. X.B "\-h \fInum\fP"
  522. Specifies the history scrollback buffer to be \fInum\fP lines high.
  523. X.TP 5
  524. X.B \-i
  525. will cause the interrupt key (usually C-c) to interrupt the display
  526. immediately when flow-control is on.
  527. See the \*Qflow\*U .screenrc command for details.
  528. X.TP 5
  529. X.B "\-l \fPand\fB -ln"
  530. turns login mode on or off (for /etc/utmp updating).
  531. This can also be defined through the \*Qlogin\*U .screenrc command.
  532. X.TP 5
  533. X.B "\-ls \fPand\fB -list"
  534. does not start
  535. X.IR screen ,
  536. but prints a list of
  537. X.I host.tty
  538. pairs identifying your 
  539. X.I screen
  540. sessions.
  541. Sessions marked `detached' can be resumed with \*Qscreen -r\*U. Those marked 
  542. X`attached' are running and have a controlling terminal. Sessions marked as
  543. X`dead' should be thoroughly checked and removed. Ask your system administrator
  544. if you are not sure. Remove sessions with the \fB-wipe\fP option.
  545. X.TP 5
  546. X.B "\-t \fIname\fP"
  547. sets the title (a.\|k.\|a.) for the default shell or specified program.
  548. See also the \*Qshellaka\*U .screenrc command.
  549. X.TP 5
  550. X.B "\-wipe"
  551. does the same as \*Qscreen -ls\*U, but removes destroyed sessions instead of 
  552. marking them as `dead'.
  553. X.TP 5
  554. X.B \-L
  555. tells 
  556. X.I screen
  557. your auto-margin terminal has a writable last-position on
  558. the screen.
  559. This can also be set in your .screenrc by specifying `LP' in a \*Qtermcap\*U
  560. command.
  561. X.TP 5
  562. X.B \-O
  563. selects a more optimal output mode for your terminal rather than true vt100
  564. emulation (only affects auto-margin terminals without `LP').
  565. This can also be set in your .screenrc by specifying `OP' in a \*Qtermcap\*U
  566. command.
  567. X.TP 5
  568. X.B "\-r \fP[\fIhost.tty\fP]"
  569. resumes a detached
  570. X.I screen
  571. session.
  572. No other options (except \*Q-d -r\*U or \*Q-D -r\*U) may be specified, though
  573. an optional
  574. X.I host.tty
  575. may be needed to distinguish between multiple detached
  576. X.I screen
  577. sessions.
  578. X.TP 5
  579. X.B \-R
  580. attempts to resume the first detached 
  581. X.I screen
  582. session it finds.
  583. If successful, all other command-line options are ignored.
  584. If no detached session exists, starts a new session using the specified
  585. options, just as if
  586. X.B \-R
  587. were not specified.
  588. X.TP 5
  589. X.B \-s
  590. sets the default shell to the program specified, instead of the value
  591. in the environment variable $SHELL (or \*Q/bin/sh\*U if not defined).
  592. This can also be defined through the \*Qshell\*U .screenrc command.
  593. X.SH CUSTOMIZATION
  594. The \*Qsocket directory\*U defaults either to $HOME/.screen or preferably
  595. to /local/screens. If
  596. X.I screen
  597. is installed setuid-root, then the administrator
  598. should compile screen with an adequate (not NFS mounted) SOCKDIR. If
  599. X.I screen
  600. is not running setuid-root, the user can specify any mode 777 directory
  601. in the environment variable $SCREENDIR.
  602. X.PP
  603. When
  604. X.I screen
  605. is invoked, it executes initialization commands from the files
  606. X\*Q/local/etc/screenrc\*U and
  607. X\*Q.screenrc\*U in the user's home directory. These are the \*Qprogrammer's
  608. defaults\*U that can be overridden in the following ways: For the 
  609. global screenrc file 
  610. X.I screen
  611. searches for the environment variable $SYSSCREENRC. The user specific
  612. screenrc file is searchend in $ISCREENRC, then $SCREENRC, then $HOME/.iscreenrc
  613. and finally defaults to $HOME/.screenrc. The command line option \fB-c\fP takes
  614. precedence over the user specific screenrc file.
  615. Commands in these files are used to set options, bind functions to
  616. keys, and to automatically establish one or more extra windows at the
  617. beginning of your
  618. X.I screen
  619. session.
  620. Commands are listed one per line, with empty lines being ignored.
  621. A command's arguments are separated by tabs or spaces, and may be
  622. surrounded by single or double quotes.
  623. A `#' turns the rest of the line into a comment, except in quotes.
  624. Unintelligible lines are warned about and ignored.
  625. Commands may contain references to environment variables. The 
  626. syntax is the shell-like "$VAR " or "${VAR}". Note that this causes 
  627. incompatibilities with previous 
  628. X.I screen
  629. versions, as now the '$'-sign has to be protected with '\' if no
  630. variable substitution shall be performed.
  631. X.PP
  632. Customization can also be done 'on-line'. To enter the command mode type
  633. X`C-a :'. Setting flags (like scrollback, login, etc.) on-line may not have
  634. the desired effect, as e.\|g. the command "C-a : login on" will affect
  635. only the settings for the creation of new windows (just like within .screenrc).
  636. If you intend to change flags
  637. of the current window, then prepend the command with the keyword "set". E.\|g.
  638. X"C-a : set login on" will log this window in.
  639. X.PP
  640. The following initialization commands are available:
  641. X.PP
  642. X.ne 3
  643. X.B "activity \fImessage\fP"
  644. X.sp
  645. When any activity occurs in a background window that is being monitored,
  646. X.I screen
  647. displays a notification in the message line.
  648. The notification message can be re-defined by means of the \*Qactivity\*U
  649. command.
  650. XEach occurrence of `%' in \fImessage\fP is replaced by
  651. the number of the window in which activity has occurred,
  652. and each occurrence of `~' is replaced by the definition for bell
  653. in your termcap (usually an audible bell).
  654. The default message is
  655. X.sp
  656. X    'Activity in window %'
  657. X.sp
  658. Note that monitoring is off for all windows by default, but can be altered
  659. by use of the \*Qmonitor\*U command (C-a M).
  660. X.PP
  661. X.ne 3
  662. X.B "autodetach on\fP|\fBoff"
  663. X.sp
  664. Sets whether 
  665. X.I screen
  666. will automatically detach upon hangup, which
  667. saves all your running programs until they are resumed with a
  668. X.B "screen -r"
  669. command.
  670. When turned off, a hangup signal will terminate 
  671. X.I screen
  672. and all the processes it contains. Autodetach is on by default.
  673. X.PP
  674. X.ne 3
  675. X.B "bell \fImessage\fP"
  676. X.sp
  677. When a bell character is sent to a background window,
  678. X.I screen
  679. displays a notification in the message line.
  680. The notification message can be re-defined by means of the \*Qbell\*U
  681. command.
  682. XEach occurrence of `%' in \fImessage\fP is replaced by
  683. the number of the window to which a bell has been sent,
  684. and each occurrence of `~' is replaced by the definition for bell
  685. in your termcap (usually an audible bell).
  686. The default message is
  687. X.sp
  688. X    'Bell in window %'
  689. X.sp
  690. An empty message can be supplied to the \*Qbell\*U command to suppress
  691. output of a message line (bell "").
  692. X.PP
  693. X.ne 3
  694. X.B "bind \fP\fIkey\fP [\fIfunction\fP [\fIargs\fP]]"
  695. X.sp
  696. Bind a function to a key.
  697. By default, each function provided by
  698. X.I screen
  699. is bound to one or more keys as indicated by the above table, e.\|g. the
  700. function to create a new window is bound to \*QC-c\*U and \*Qc\*U.
  701. The \*Qbind\*U command can be used to redefine the key bindings and to
  702. define new bindings.
  703. The \fIkey\fP argument is either a single character, a two-character sequence
  704. of the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
  705. number (specifying the ASCII code of the character), or a backslash followed
  706. by a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
  707. The argument can also be quoted, if you like.
  708. If no further argument is given, any previously established binding
  709. for this key is removed.
  710. The \fIfunction\fP argument can be one of the following keywords:
  711. X.PP
  712. X.nf
  713. X    select0    Switch to window #0
  714. X    \0\0...
  715. X    select9    Switch to window #9
  716. X    aka    Change the current window's a.\|k.\|a.
  717. X    autoflow    Toggle the current window's autoflow setting
  718. X    clear    Clear the screen
  719. X    colon    Enter one \*Q.screenrc\*U command on-the-fly.
  720. X    copy    Select a piece of text.
  721. X    detach    Detach \fIscreen\fP
  722. X    flow    Toggle the current window's flow-control setting
  723. X    hardcopy    Make hardcopy of current window
  724. X    history    Use cut&paste to fetch a recently displayed line.
  725. X    help    Display a list of the key bindings in effect
  726. X    info    Display the current window's status information
  727. X    kill    Kill the current window
  728. X    lastmsg    Redisplay the last message line
  729. X    lock    Run a screenlock program. 
  730. X    log    Begin/end logging of the current window's output
  731. X    login    Toggle the window's \*Qlogin\*U setting (/etc/utmp entry)
  732. X    monitor    Toggle activity monitoring of the current window
  733. X    next    Switch to the next window
  734. X    other    Switch to the window displayed previously
  735. X    paste    Paste in a selected piece of text.
  736. X    pow_detach    Detach \fIscreen\fP and logout.
  737. X    prev    Switch to the previous window
  738. X    quit    Kill all windows and terminate
  739. X    readbuffer    Take text from the exchange file.
  740. X    redisplay    Redisplay current window
  741. X    reset    Reset the window to its \*Qpower-on\*U settings
  742. X    screen    Create a new window with the specified command
  743. X    shell    Create a new window with a shell
  744. X    suspend    Suspend \fIscreen\fP
  745. X    termcap    Write screen's termcap entry to $HOME/.screencap
  746. X    vbell    Toggle the window's \*Qvbell\*U setting.
  747. X      version    Display the version numbers and date last modified
  748. X    width    Toggle the terminal width between 80 and 132 columns
  749. X    windows    Display a list of all windows
  750. X    wrap    Toggle the current window's line-wrap setting
  751. X    writebuffer    Store the selected text in the exchange file.
  752. X    xoff    Send a control-s to the current program
  753. X    xon    Send a control-q to the current program
  754. X.fi
  755. X.PP
  756. XFor purposes of backward compatibility, if your command does not match one
  757. of the above keywords, it is assumed to be an external command, and is run
  758. in a newly created window.
  759. This is an abbreviation of the screen command,
  760. but without the possibility of specifying any screen options.
  761. Some examples:
  762. X.PP
  763. X.nf
  764. X    bind ' ' windows
  765. X    bind ^f screen telnet foobar
  766. X    bind \e033 screen -ln -t root 9 su
  767. X.fi
  768. X.PP
  769. would bind the space key to the function that displays a list
  770. of windows (so that the function usually invoked by \*QC-a C-w\*U
  771. would also be available as \*QC-a space\*U),
  772. bind \*QC-f\*U to the function \*Qcreate a window with a TELNET
  773. connection to foobar\*U, and bind \*Qescape\*U to the function
  774. that creates an non-login window with a.\|k.\|a. \*Qroot\*U in slot #9, with
  775. a super-user shell.
  776. X.PP
  777. X.ne 3
  778. X.B "chdir \fP[\fIdirectory\fP]"
  779. X.sp
  780. Change the \fIcurrent directory\fP of
  781. X.I screen
  782. to the specified directory or, if called without an argument,
  783. to your home directory (the value of the environment variable $HOME).
  784. All windows that are created by means of the \*Qscreen\*U command
  785. from within \*Q.screenrc\*U or by means of \*QC-a : screen ...\*U
  786. or \*QC-a c\*U use this as their default directory.
  787. Without a chdir command, this would be the directory from which
  788. X.I screen
  789. was invoked.
  790. Hardcopy and log files are always written to the \fIwindow's\fP default
  791. directory, \fInot\fP the current directory of the process running in the
  792. window.
  793. You can use this command multiple times in your .screenrc to start various
  794. windows in different default directories, but the last chdir value will
  795. affect all the windows you create interactively.
  796. X.PP
  797. X.ne 3
  798. X.B "crlf on\fP|\fBoff"
  799. X.sp
  800. This affects the copying of text regions with the `C-a [' command. If it is set
  801. to `on', lines will be separated by the two character sequence `CR' - `LF'. 
  802. Otherwise only `LF' is used.
  803. X.PP
  804. X.ne 3
  805. X.B "echo \fP[\fB-n\fP]\fB \fImessage\fP"
  806. X.sp
  807. The echo command may be used to annoy 
  808. X.I screen
  809. users with a 'message of the
  810. day'. Typically installed in a global /usr/local/etc/screenrc. See also
  811. X\*Qsleep\*U.
  812. XEcho is also usefull for online checking of environment variables.
  813. X.PP
  814. X.ne 3
  815. X.B "escape \fIxy\fP"
  816. X.sp
  817. Set the command character to \fIx\fP and the character generating a literal
  818. command character to \fIy\fP (just like in the \-e option).
  819. XEach argument is either a single character, a two-character sequence
  820. of the form \*Q^x\*U (meaning \*QC-x\*U), a backslash followed by an octal
  821. number (specifying the ASCII code of the character), or a backslash followed
  822. by a second character, such as \*Q\e^\*U or \*Q\e\e\*U.
  823. The default is \*Q^Aa\*U, but \*Q``\*U is recommended by one of the authors.
  824. X.PP
  825. X.ne 3
  826. X.B "flow on\fP|\fBoff\fP|\fBauto \fP[\fBinterrupt\fP]\fB"
  827. X.sp
  828. Sets the default flow-control mode for new windows.
  829. Specifying \*Qflow auto interrupt\*U is the same as the command-line options
  830. X.B \-fa
  831. and
  832. X.BR \-i .
  833. See the discussion on FLOW-CONTROL later on in this document for full details.
  834. X.PP
  835. X.ne 3
  836. X.B "login on\fP|\fBoff"
  837. X.sp
  838. Sets the login flag which determines if new windows should have /etc/utmp
  839. entries added for them.
  840. The login state is also changeable on-the-fly by using the bindable version
  841. of the \*Qlogin\*U command (C-a L) of by means of "C-a : set login on|off".
  842. The default should be \*Qon\*U for a 
  843. X.I screen
  844. that runs under suid-root.
  845. X.PP
  846. X.ne 3
  847. X.B "markkeys \fIstring\fP"
  848. X.sp
  849. This is a method of changing the keymap used for copy/history mode.
  850. The string is made up of \fIoldchar\fP=\fInewchar\fP pairs which are
  851. separated by `:'. Example: The string \*QB=^B:F=^F\*U will change the 
  852. keys `C-b' and `C-f' from their (original emacs-style bindings) to the vi style
  853. binding (scroll up/down full page), which is the default meaning of `B' and
  854. X`F'.
  855. X.PP
  856. X.ne 3
  857. X.B "mode \fImode\fP"
  858. X.sp
  859. The mode of each newly allocated pseudo-tty is set to \fImode\fP.
  860. X\fIMode\fP is an octal number.
  861. When no \*Qmode\*U command is given, mode 0622 is used.
  862. X.PP
  863. X.ne 3
  864. X.B "nethack on\fP|\fBoff"
  865. X.sp
  866. Changes the kind of error messages used by
  867. X.IR screen .
  868. When you are familiar with the game \*Qnethack\*U, you may enjoy the
  869. nethack-style messages which will often blurr the facts a little, but are
  870. much funnier to read. Anyway, standard messages always tend to be unclear as
  871. well.
  872. X.br
  873. This option is only 
  874. available, if screen was compiled with the NETHACK flag defined. The
  875. default setting is then determined by the presence of the environment 
  876. variable $NETHACKOPTIONS.
  877. X.PP
  878. X.ne 3
  879. X.B "password \fP[\fIcrypted_pw\fP]"
  880. X.sp
  881. Present a crypted password in your \*Q.screenrc\*U file and screen will ask
  882. for it, whenever a detached session is tried to be resumed. This is useful,
  883. if you have privileged programs running under
  884. X.I screen
  885. and you want to protect your session from reattach attempts by users that 
  886. managed to have your uid. (I.e. any superuser.)
  887. X.PP
  888. X.ne 3
  889. X.B "pow_detach_msg \fImessage\fP"
  890. X.sp
  891. The \fImessage\fP specified here is output whenever a `Power detach' was
  892. performed. It may be used as a replacement for a logout message or to reset 
  893. baud rate, etc.
  894. X.PP
  895. X.ne 3
  896. X.B "screen \fP[\fI-opts\fP] [\fIn\fP] [\fIcmd\fP [\fIargs\fP]]"
  897. X.sp
  898. XEstablish a new window.
  899. The flow-control options (\fB\-f\fP, \fB\-fn\fP and \fB\-fa\fP),
  900. title (a.\|k.\|a.) option (\fB\-t\fP), login options (\fB-l\fP and \fB-ln\fP)
  901. X, terminal type option (\fB-T <term>\fP) and scrollback option (\fB-h\fP <num>)
  902. may be specified for each command.
  903. If an optional number \fIn\fP in the range 0..9 is given, the window
  904. number \fIn\fP is assigned to the newly created window (or, if this
  905. number is already in-use, the next available number).
  906. If a command is specified after \*Qscreen\*U, this command (with the given
  907. arguments) is started in the window; otherwise, a shell is created.
  908. Thus, if your \*Q.screenrc\*U contains the lines
  909. X.sp
  910. X.nf
  911. X    # example for .screenrc:
  912. X    screen 1
  913. X    screen -fn -t foobar 2 telnet foobar
  914. X.fi
  915. X.sp
  916. X.I screen
  917. creates a shell window (in window #1), a window with a TELNET connection
  918. to the machine foobar (with no flow-control using the a.\|k.\|a. \*Qfoobar\*U
  919. in window #2), and finally, a second shell window
  920. X(the default window) which gets a window number of zero.
  921. When the initialization is completed,
  922. X.I screen
  923. switches to the last window specified in your .screenrc file or, if none, it
  924. opens a default window #0 that would be displayed in this
  925. case.
  926. X.PP
  927. X.ne 3
  928. X.B "scrollback \fP\fInum\fP"
  929. X.sp
  930. Set the size of the scrollback buffer for new windows to \fInum\fP lines.
  931. The default scrollback is 50 lines.
  932. Use "C-a : set scrollback \fInum\fP" to change the scrollback size of the
  933. current window and use "C-a i" to view the current setting. 
  934. X.PP
  935. X.ne 3
  936. X.B "shell \fIcommand\fP"
  937. X.sp
  938. Set the command to be used to create a new shell.
  939. This overrides the value of the environment variable $SHELL, or \*Q/bin/sh\*U
  940. if undefined.
  941. This is useful if you'd like to run a tty-enhancer which is expecting to
  942. execute the program specified in $SHELL.
  943. X.PP
  944. X.ne 3
  945. X.B "shellaka \fIa.\|k.\|a.\fP"
  946. X.sp
  947. Set the a.\|k.\|a. for all shells created during startup or by
  948. the C-A C-c command.
  949. XFor details about what a.\|k.\|a.\|'s are, see the discussion
  950. entitled ALSO KNOWN AS.
  951. X.PP
  952. X.ne
  953. X.B "sleep \fP\fInum\fP"
  954. This command will pause the execution of a .screenrc file for \fInum\fP seconds.
  955. It may be used to give users a chance to read the messages output by \*Qecho\*U.
  956. X.PP
  957. X.ne 3
  958. X.B "term \fIterm\fP"
  959. X.sp
  960. In each window's environment
  961. X.I screen
  962. opens, it sets the $TERM variable to \*Qscreen\*U by default. 
  963. But when no description for \*Qscreen\*U is installed in the local termcap
  964. or terminfo data base, you can pretend that the terminal emulator is - say -
  965. X\*Qvt100\*U. This won't do much harm, as 
  966. X.I screen
  967. is VT100/ANSI compatible.
  968. The use of the \*Qterm\*U command is discouraged for non-default purpose.
  969. That is, one may want to specify special $TERM settings (e.g. vt100) for the
  970. next \*Qscreen rlogin othermacine\*U command. Use the command \*Qscreen -T vt100
  971. rlogin othermachine\*U rather than setting (\*Qterm vt100\*U) and resetting
  972. X(\*Qterm screen\*U) the default before and after the \*Qscreen\*U command.
  973. X.PP
  974. X.ne 3
  975. X.B "termcap \fIterm\fP \fIterminal-tweaks\fP \fP[\fIwindow-tweaks\fP]"
  976. X.br
  977. X.B "terminfo \fIterm\fP \fIterminal-tweaks\fP \fP[\fIwindow-tweaks\fP]"
  978. X.sp
  979. Use this command to modify your terminal's termcap entry without going through
  980. all the hassles involved in creating a custom termcap entry.
  981. Plus, you can optionally customize the termcap generated for the windows.
  982. If your system works with terminfo-database rather than with
  983. termcap
  984. X.I screen
  985. will understand the `terminfo' command which has the same effects as
  986. the `termcap' command. Thus users can write one .screenrc file that handles
  987. both cases, although terminfo syntax is slightly different
  988. from termcap syntax.
  989. X.PP
  990. The first argument specifies which terminal(s) should be affected by this
  991. definition.
  992. You can specify multiple terminal names by separating them with `|'s.
  993. Use `*' to match all terminals and `vt*' to match all terminals that begin
  994. with \*Qvt\*U.
  995. X.PP
  996. XEach \fItweak\fP argument contains one or more termcap defines (separated
  997. by `:'s) to be inserted at the start of the appropriate termcap entry,
  998. enhancing it or overriding existing values.
  999. The first tweak modifies your terminal's termcap, and contains definitions
  1000. that your terminal uses to perform certain functions.
  1001. Specify a null string to leave this unchanged (e.\|g. '').
  1002. The second (optional) tweak modifies all the window termcaps, and should
  1003. contain definitions that screen understands (see the \*QVIRTUAL TERMINAL\*U
  1004. section).
  1005. X.PP
  1006. Some examples:
  1007. X.IP
  1008. termcap xterm*  LP:hs@
  1009. X.PP
  1010. Informs
  1011. X.I screen
  1012. that all terminals that begin with `xterm' have firm auto-margins that
  1013. allow the last position on the screen to be updated (LP), but they don't
  1014. really have a status line (no 'hs' -- append `@' to turn entries off).
  1015. Note that we assume `LP' for all terminal names that start with \*Qvt\*U,
  1016. but only if you don't specify a termcap command for that terminal.
  1017. X.sp
  1018. X.nf
  1019. X    termcap vt*  LP
  1020. X    termcap vt102|vt220  Z0=\eE[?3h:Z1=\eE[?3l
  1021. X.fi
  1022. X.sp
  1023. Specifies the firm-margined `LP' capability for all terminals that begin with
  1024. X`vt', and the second line will also add the escape-sequences to switch
  1025. into (Z0) and back out of (Z1) 132-character-per-line mode if this is
  1026. a vt102 or vt220.
  1027. X(You must specify Z0 and Z1 in your termcap to use the width-changing
  1028. commands.)
  1029. X.IP
  1030. termcap vt100  ""  l0=PF1:l1=PF2:l2=PF3:l3=PF4
  1031. X.PP
  1032. This leaves your vt100 termcap alone and adds the function key labels to
  1033. each window's termcap entry.
  1034. X.IP
  1035. termcap h19|z19  am@:im=\eE@:ei=\eEO  dc=\eE[P
  1036. X.PP
  1037. Takes a h19 or z19 termcap and turns off auto-margins (am@) and enables the
  1038. insert mode (im) and end-insert (ei) capabilities (the `@' in the `im'
  1039. string is after the `=', so it is part of the string).
  1040. Having the `im' and `ei' definitions put into your terminal's termcap will
  1041. cause screen to automatically advertise the character-insert capability in
  1042. each window's termcap.
  1043. XEach window will also get the delete-character capability (dc) added to its
  1044. termcap, which screen will translate into a line-update for the terminal
  1045. X(we're pretending it doesn't support character deletion).
  1046. X.PP
  1047. If you would like to fully specify each window's termcap entry, you should
  1048. instead set the $SCREENCAP variable prior to running
  1049. X.IR screen .
  1050. See the discussion on the \*QVIRTUAL TERMINAL\*U in this manual, and the termcap(5)
  1051. man page for more information on termcap definitions.
  1052. X.PP
  1053. X.ne 3
  1054. X.B "vbell on\fP|\fBoff"
  1055. X.sp
  1056. Sets the visual bell setting for new windows. If your terminal does not support
  1057. a visual bell a message is printed to the status line. The default 
  1058. message is \*QWuff, Wuff!!\*U.
  1059. X.PP
  1060. X.ne 3
  1061. X.B "vbell_msg \fImessage\fP"
  1062. X.sp
  1063. Sets the visual bell message. \fImessage\fP is printed to the status line if
  1064. the window receives a bell character (^G) and vbell is set to \*Qon\*U.
  1065. X.PP
  1066. X.ne 3
  1067. X.B "wrap on\fP|\fBoff"
  1068. X.sp
  1069. Sets the line-wrap setting for new windows.
  1070. When line-wrap is on, the second consecutive printable character output at
  1071. the last column of a line will wrap to the start of the following line.
  1072. As an added feature, backspace (^H) will also wrap through the left margin
  1073. to the previous line.
  1074. Line-wrap is on by default and can be toggled with the \*Qwrap\*U
  1075. command (\*QC-a r\*U) or by means of "C-a : set wrap on|off".
  1076. X.SH "THE MESSAGE LINE"
  1077. X.I Screen
  1078. displays informational messages and other diagnostics in a \fImessage line\fP
  1079. at the bottom of the screen.
  1080. If your terminal has a status line defined in its termcap, screen will use
  1081. this for displaying its messages, otherwise the last line of the screen will
  1082. be temporarily overwritten and output will be momentarily interrupted.
  1083. The message line is automatically removed after a few seconds delay, but it
  1084. can also be removed early (on terminals without a status line) by beginning
  1085. to type.
  1086. X.PP
  1087. The message line facility can be used by an application running in
  1088. the current window by means of the ANSI \fIPrivacy message\fP
  1089. control sequence.
  1090. XFor instance, from within the shell, try something like:
  1091. X.IP
  1092. echo '<esc>^Hello world<esc>\e\e'
  1093. X.PP
  1094. where '<esc>' is an \fIescape\fP, '^' is a literal up-arrow,
  1095. and '\e\e' turns into a single backslash.
  1096. X.SH "FLOW-CONTROL"
  1097. XEach window has a flow-control setting that determines how screen deals with
  1098. the XON and XOFF characters (and perhaps the interrupt character).
  1099. When flow-control is turned off, screen ignores the XON and XOFF characters,
  1100. which allows the user to send them to the current program by simply typing
  1101. them (useful for the \fIemacs\fP editor, for instance).
  1102. The trade-off is that it will take longer for output from a \*Qnormal\*U
  1103. program to pause in response to an XOFF.
  1104. With flow-control turned on, XON and XOFF characters are used to immediately
  1105. pause the output of the current window.
  1106. You can still send these characters to the current program, but you must use
  1107. the appropriate two-character screen commands (typically \*QC-a q\*U (xon)
  1108. and \*QC-a s\*U (xoff)).
  1109. The xon/xoff commands are also useful for typing C-s and C-q past a terminal
  1110. that intercepts these characters.
  1111. X.PP
  1112. XEach window has an initial flow-control value set with either the
  1113. X.B \-f
  1114. option or the \*Qflow\*U .screenrc command.
  1115. It can then be toggled on and off interactively with the \*Qflow\*U
  1116. bound-command (C-a f).
  1117. X.PP
  1118. There is also an automatic flow-switching mode that will enable/disable
  1119. flow-control on-the-fly based on the current setting of the application
  1120. keypad -- when it is enabled, flow-control is turned off and visa versa.
  1121. Of course, you can still manipulate flow-control manually when needed, and
  1122. toggle the auto-flow mode on and off with the \*Qautoflow\*U command (C-a /).
  1123. X.PP
  1124. If you're running with flow-control enabled and find that pressing the
  1125. interrupt key (usually C-c) does not interrupt the display until another
  1126. X6-8 lines have scrolled by, try running screen with the \*Qinterrupt\*U
  1127. option (add the \*Qinterrupt\*U flag to the \*Qflow\*U command in
  1128. your .screenrc, or use the
  1129. X.B \-i
  1130. command-line option).
  1131. This causes the output that
  1132. X.I screen
  1133. has accumulated from the interrupted program to be flushed.
  1134. One disadvantage is that the virtual terminal's memory contains the
  1135. non-flushed version of the output, which in rare cases can cause
  1136. minor inaccuracies in the output.
  1137. XFor example, if you switch screens and return, or update the screen
  1138. with \*QC-a l\*U you would see the version of the output you would
  1139. have gotten without \*Qinterrupt\*U being on.
  1140. Also, you might need to turn off flow-control (or use auto-flow mode to turn
  1141. it off automatically) when running a program that expects you to type the
  1142. interrupt character as input, as it is possible to interrupt
  1143. the output of the virtual terminal to your physical terminal when flow-control
  1144. is enabled.
  1145. If this happens, a simple refresh of the screen with \*QC-a l\*U will
  1146. restore it.
  1147. Give each mode a try, and use whichever mode you find more comfortable.
  1148. X.SH "ALSO KNOWN AS (A.\|K.\|A.\|s)"
  1149. You can customize each window's name in the window display (viewed with the
  1150. X\*Qwindows\*U command (C-a w)) by setting it with one of
  1151. the a.\|k.\|a. commands.
  1152. Normally the name displayed is the actual command name of the program
  1153. created in the window.
  1154. However, it is sometimes useful to distinguish various programs of the same
  1155. name or to change the name on-the-fly to reflect the current state of
  1156. the window.
  1157. X.PP
  1158. The default name for all shell windows can be set with the \*Qshellaka\*U
  1159. command in the .screenrc file, while all other windows are created with
  1160. a \*Qscreen\*U command and thus can have their name set with the
  1161. X.B \-t
  1162. option.
  1163. Interactively, there is the AKA-string escape-sequence
  1164. X(<esc>k\fIname\fP<esc>\e) and the \*Qaka\*U command (C-a A).
  1165. The former can be output from an application to control the window's name
  1166. under software control, and the latter will prompt for a name when typed.
  1167. You can also bind pre-defined names to keys with the \*Qaka\*U command
  1168. to set things quickly without prompting.
  1169. X.PP
  1170. XFinally,
  1171. X.I screen
  1172. has a shell-specific heuristic that is enabled by setting the window's name
  1173. to \*Q\fIsearch|name\fP\*U and arranging to have a null aka escape-sequence
  1174. output as a part of your prompt.
  1175. The \fIsearch\fP portion specifies an end-of-prompt search string, while
  1176. the \fIname\fP portion specifies the default shell name for the window.
  1177. If the \fIname\fP ends in a `:'
  1178. X.I screen
  1179. will add what it believes to be the current command running in the window
  1180. to the end of the window's shell name (e.\|g. \*Q\fIname:cmd\fP\*U).
  1181. Otherwise the current command name supersedes the shell name while it is
  1182. running.
  1183. X.PP
  1184. Here's how it works:  you must modify your shell prompt to output a null
  1185. aka escape-sequence (<esc>k<esc>\e) as a part of your prompt.
  1186. The last part of your prompt must be the same as the string you specified
  1187. for the \fIsearch\fP portion of the a.\|k.\|a.
  1188. Once this is set up,
  1189. X.I screen
  1190. will use the aka escape-sequence to clear the previous command name and
  1191. get ready for the next command.
  1192. Then, when a newline is received from the shell, a search is made for the
  1193. end of the prompt.
  1194. If found, it will grab the first word after the matched string and use it
  1195. as the command name.
  1196. If the command name begins with either '!', '%', or '^'
  1197. X.I screen
  1198. will use the first word on the following line (if found) in preference to
  1199. the just-found name.
  1200. This helps csh users get better command names when using job control or
  1201. history recall commands.
  1202. X.PP
  1203. Here's some .screenrc examples:
  1204. X.IP
  1205. screen -t top 2 nice top
  1206. X.PP
  1207. Adding this line to your .screenrc would start a niced version of the
  1208. X\*Qtop\*U command in window 2 name \*Qtop\*U rather than \*Qnice\*U.
  1209. X.sp
  1210. X.nf
  1211. X    shellaka '> |csh'
  1212. X    screen 1
  1213. X.fi
  1214. X.sp
  1215. This file would start two shells (one specified, one default) using
  1216. the given shellaka.
  1217. The a.\|k.\|a. specified is an auto-aka that would expect the prompt and
  1218. the typed command to look something like the following:
  1219. X.IP
  1220. X/usr/joe/src/dir> trn
  1221. X.PP
  1222. X(it looks after the '> ' for the command name).
  1223. The window status would show the name \*Qtrn\*U while the command was
  1224. running, and revert to \*Qcsh\*U upon completion.
  1225. X.IP
  1226. bind R screen -t '% |root:' su
  1227. X.PP
  1228. Having this command in your .screenrc would bind the key
  1229. sequence \*QC-a R\*U to the \*Qsu\*U command and give it an
  1230. auto-aka name of \*Qroot:\*U.
  1231. XFor this auto-aka to work, the screen could look something
  1232. like this:
  1233. X.sp
  1234. X.nf
  1235. X    % !em
  1236. X    emacs file.c
  1237. X.fi
  1238. X.sp
  1239. Here the user typed the csh history command \*Q!em\*U which ran the
  1240. previously entered \*Qemacs\*U command.
  1241. The window status would show \*Qroot:emacs\*U during the execution
  1242. of the command, and revert to simply \*Qroot:\*U at its completion.
  1243. X.PP
  1244. X.nf
  1245. X    bind o aka
  1246. X    bind E aka ""
  1247. X    bind u aka (unknown)
  1248. X.fi
  1249. X.sp
  1250. The first binding doesn't have any arguments, so it would prompt you
  1251. for an a.\|k.\|a. when you type \*QC-a o\*U.
  1252. The second binding would clear an auto-aka's current setting (C-a E).
  1253. The third binding would set the current window's a.\|k.\|a. to \*Q(unknown)\*U
  1254. X(C-a u).
  1255. X.PP
  1256. One thing to keep in mind when adding a null aka escape-sequence to
  1257. your prompt is that some shells (like the csh) count all the non-control
  1258. characters as part of the prompt's length.
  1259. If these invisible characters aren't a multiple of 8 then backspacing over
  1260. a tab will result in an incorrect display.
  1261. One way to get around this is to use a prompt like this:
  1262. X.IP
  1263. set prompt='^[[0000m^[k^[\e% '
  1264. X.PP
  1265. The escape-sequence \*Q<esc>[0000m\*U not only normalizes the character
  1266. attributes, but all the zeros round the length of the invisible characters
  1267. up to 8.
  1268. Bash users will probably want to echo the escape sequence in the
  1269. PROMPT_COMMAND:
  1270. X.IP
  1271. PROMPT_COMMAND='echo -n -e "\e033k\e033\e134"'
  1272. X.PP
  1273. X(I used \*Q\134\*U to output a `\e' because of a bug in v1.04).
  1274. X.SH "THE VIRTUAL TERMINAL"
  1275. Usually
  1276. X.I screen
  1277. tries to emulate as much of the VT100/ANSI standard
  1278. as possible. But if your terminal lacks certain capabilities
  1279. the emulation may not be complete. In these cases
  1280. X.I screen
  1281. has to tell the applications that some of the features
  1282. are missing. This is no problem on machines using termcap,
  1283. because
  1284. X.I screen
  1285. can use the $TERMCAP variable to
  1286. customize the standard screen termcap.
  1287. X.br
  1288. But if you do a
  1289. rlogin on another machine or your machine supports only
  1290. terminfo this method fails. Because of this
  1291. X.I screen
  1292. offers a way to deal with these cases. Here is how it works:
  1293. X.br
  1294. When 
  1295. X.I screen
  1296. tries to figure out a terminal name for itself,
  1297. it first looks
  1298. for an entry named \*Qscreen.<term>\*U, where <term> is
  1299. the contents of your $TERM variable.
  1300. If no such entry exists,
  1301. X.I screen
  1302. tries \*Qscreen\*U (or \*Qscreen-w\*U, if the terminal is wide
  1303. X(132 cols or more)).
  1304. If even this entry cannot be found, \*Qvt100\*U is used as a
  1305. substitute.
  1306. X.br
  1307. The idea is that if you have a terminal which doesn't
  1308. support an important feature (e.g. delete char or clear to EOS)
  1309. you can build a new termcap/terminfo entry for
  1310. X.I screen
  1311. X(named \*Qscreen.<dumbterm>\*U) in which this capability
  1312. has been disabled.  If this entry is installed on your
  1313. machines you are able to do
  1314. a rlogin and still keep the correct termcap/terminfo entry.
  1315. The terminal name is put in the $TERM variable
  1316. of all new windows.
  1317. X.I Screen
  1318. also sets the $TERMCAP variable reflecting the capabilities
  1319. of the virtual terminal emulated. Notice that, however, on machines
  1320. using the terminfo database this variable has no effect.
  1321. XFurthermore, the variable $WINDOW is set to the window number
  1322. of each window.
  1323. X.br
  1324. The actual set of capabilities supported by the virtual terminal
  1325. depends on the capabilities supported by the physical terminal.
  1326. If, for instance, the physical terminal does not support underscore mode,
  1327. X.I screen
  1328. does not put the `us' and `ue' capabilities into the window's $TERMCAP
  1329. variable, accordingly.
  1330. However, a minimum number of capabilities must be supported by a
  1331. terminal in order to run
  1332. X.IR screen ;
  1333. namely scrolling, clear screen, and direct cursor addressing
  1334. X(in addition,
  1335. X.I screen
  1336. does not run on hardcopy terminals or on terminals that over-strike).
  1337. X.PP
  1338. Also, you can customize the $TERMCAP value used by
  1339. X.I screen
  1340. by using the \*Qtermcap\*U .screenrc command, or
  1341. by defining the variable $SCREENCAP prior to startup.
  1342. When the latter defined, its value will be copied verbatim into each
  1343. window's $TERMCAP variable.
  1344. This can either be the full terminal definition, or a filename where the
  1345. terminal \*Qscreen\*U (and/or \*Qscreen-w\*U) is defined.
  1346. X.PP
  1347. Note that 
  1348. X.I screen
  1349. honors the \*Qterminfo\*U .screenrc command if the system uses the
  1350. terminfo database rather than termcap.
  1351. X.PP
  1352. When the boolean `G0' capability is present in the termcap entry
  1353. for the terminal on which
  1354. X.I screen
  1355. has been called, the terminal emulation of
  1356. X.I screen
  1357. supports multiple character sets.
  1358. This allows an application to make use of, for instance,
  1359. the VT100 graphics character set or national character sets.
  1360. The following control functions from ISO 2022 are supported:
  1361. X\fIlock shift G0\fP (\fISI\fP), \fIlock shift G1\fP (\fISO\fP),
  1362. X\fIlock shift G2\fP, \fIlock shift G3\fP, \fIsingle shift G2\fP,
  1363. and \fIsingle shift G3\fP.
  1364. When a virtual terminal is created or reset, the ASCII character
  1365. set is designated as \fIG0\fP through \fIG3\fP.
  1366. When the `G0' capability is present, screen evaluates the capabilities
  1367. X`S0', `E0', and `C0' if present. `S0' is the sequence the terminal uses
  1368. to enable and start the graphics character set rather than \fISI\fP. 
  1369. X`E0' is the corresponding replacement for \fISO\fP. `C0' gives a character
  1370. by character translation string that is used during semi-graphics mode. This 
  1371. string is built like the `acsc' terminfo capability.
  1372. X.PP
  1373. When the `po' and `pf' capabilities are present in the terminal's
  1374. termcap entry, applications running in a
  1375. X.I screen
  1376. window can send output to the printer port of the terminal.
  1377. This allows a user to have an application in one window
  1378. sending output to a printer connected to the terminal, while all
  1379. other windows are still active (the printer port is enabled
  1380. and disabled again for each chunk of output).
  1381. As a side-effect, programs running in different windows can
  1382. send output to the printer simultaneously.
  1383. Data sent to the printer is not displayed in the window.
  1384. X.PP
  1385. Some capabilities are only put into the $TERMCAP
  1386. variable of the virtual terminal if they can be efficiently
  1387. implemented by the physical terminal.
  1388. XFor instance, `dl' (delete line) is only put into the $TERMCAP
  1389. variable if the terminal supports either delete line itself or
  1390. scrolling regions. Note that this may provoke confusion, when 
  1391. the session is reattached on a different terminal, as the value
  1392. of $TERMCAP cannot be modified by parent processes.
  1393. X.PP
  1394. The following is a list of control sequences recognized by
  1395. X.IR screen .
  1396. X\*Q(V)\*U and \*Q(A)\*U indicate VT100-specific and ANSI- or
  1397. ISO-specific functions, respectively.
  1398. X.PP
  1399. X.nf
  1400. X.TP 20
  1401. X.B "ESC E"
  1402. X    Next Line
  1403. X.TP 20
  1404. X.B "ESC D"
  1405. X    Index
  1406. X.TP 20
  1407. X.B "ESC M"
  1408. X    Reverse Index
  1409. X.TP 20
  1410. X.B "ESC H"
  1411. X    Horizontal Tab Set
  1412. X.TP 20
  1413. X.B "ESC 7"
  1414. X(V)    Save Cursor and Attributes
  1415. X.TP 20
  1416. X.B "ESC 8"
  1417. X(V)    Restore Cursor and Attributes
  1418. X.TP 20
  1419. X.B "ESC [s"
  1420. X(A)    Save Cursor and Attributes
  1421. X.TP 20
  1422. X.B "ESC [u"
  1423. X(A)    Restore Cursor and Attributes
  1424. X.TP 20
  1425. X.B "ESC c"
  1426. X    Reset to Initial State
  1427. X.TP 20
  1428. X.B "ESC ="
  1429. X(V)    Application Keypad Mode
  1430. X.TP 20
  1431. X.B "ESC >"
  1432. X(V)    Numeric Keypad Mode
  1433. X.TP 20
  1434. X.B "ESC # 8"
  1435. X(V)    Fill Screen with E's
  1436. X.TP 20
  1437. X.B "ESC \e"
  1438. X(A)    String Terminator
  1439. X.TP 20
  1440. X.B "ESC ^"
  1441. X(A)    Privacy Message String (Message Line)
  1442. X.TP 20
  1443. X.B "ESC k"
  1444. X    A.\|k.\|a. Definition String
  1445. X.TP 20
  1446. X.B "ESC P"
  1447. X(A)    Device Control String
  1448. X    Outputs a string directly to the host
  1449. X    terminal without interpretation.
  1450. X.TP 20
  1451. X.B "ESC _"
  1452. X(A)    Application Program Command (not used)
  1453. X.TP 20
  1454. X.B "ESC ]"
  1455. X(A)    Operating System Command (not used)
  1456. X.TP 20
  1457. X.B "Control-N"
  1458. X(A)    Lock Shift G1 (SO)
  1459. X.TP 20
  1460. X.B "Control-O"
  1461. X(A)    Lock Shift G0 (SI)
  1462. X.TP 20
  1463. X.B "ESC n"
  1464. X(A)    Lock Shift G2
  1465. X.TP 20
  1466. X.B "ESC o"
  1467. X(A)    Lock Shift G3
  1468. X.TP 20
  1469. X.B "ESC N"
  1470. X(A)    Single Shift G2
  1471. X.TP 20
  1472. X.B "ESC O"
  1473. X(A)    Single Shift G3
  1474. X.TP 20
  1475. X.B "ESC ( \fPPcs"
  1476. X(A)    Designate character set as G0
  1477. X.TP 20
  1478. X.B "ESC ) \fPPcs"
  1479. X(A)    Designate character set as G1
  1480. X.TP 20
  1481. X.B "ESC * \fPPcs"
  1482. X(A)    Designate character set as G2
  1483. X.TP 20
  1484. X.B "ESC + \fPPcs"
  1485. X(A)    Designate character set as G3
  1486. X.TP 20
  1487. X.B "ESC [ \fPPn\fB ; \fPPn\fB H"
  1488. X    Direct Cursor Addressing
  1489. X.TP 20
  1490. X.B "ESC [ \fPPn\fB ; \fPPn\fB f"
  1491. X    Direct Cursor Addressing
  1492. X.TP 20
  1493. X.B "ESC [ \fPPn\fB J"
  1494. X    Erase in Display
  1495. X.TP 20
  1496. X\h'\w'ESC 'u'Pn = None or \fB0\fP
  1497. X    From Cursor to End of Screen
  1498. X.TP 20
  1499. X\h'\w'ESC Pn = 'u'\fB1\fP
  1500. X    From Beginning of Screen to Cursor
  1501. X.TP 20
  1502. X\h'\w'ESC Pn = 'u'\fB2\fP
  1503. X    Entire Screen
  1504. X.TP 20
  1505. X.B "ESC [ \fPPn\fB K"
  1506. X    Erase in Line
  1507. X.TP 20
  1508. X\h'\w'ESC 'u'Pn = None or \fB0\fP
  1509. X    From Cursor to End of Line
  1510. X.TP 20
  1511. X\h'\w'ESC Pn = 'u'\fB1\fP
  1512. X    From Beginning of Line to Cursor
  1513. X.TP 20
  1514. X\h'\w'ESC Pn = 'u'\fB2\fP
  1515. X    Entire Line
  1516. X.TP 20
  1517. X.B "ESC [ \fPPn\fB A"
  1518. X    Cursor Up
  1519. X.TP 20
  1520. X.B "ESC [ \fPPn\fB B"
  1521. X    Cursor Down
  1522. X.TP 20
  1523. X.B "ESC [ \fPPn\fB C"
  1524. X    Cursor Right
  1525. X.TP 20
  1526. X.B "ESC [ \fPPn\fB D"
  1527. X    Cursor Left
  1528. X.TP 20
  1529. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB m"
  1530. X    Select Graphic Rendition
  1531. X.TP 20
  1532. X\h'\w'ESC 'u'Ps = None or \fB0\fP
  1533. X    Default Rendition
  1534. X.TP 20
  1535. X\h'\w'ESC Ps = 'u'\fB1\fP
  1536. X    Bold
  1537. X.TP 20
  1538. X\h'\w'ESC Ps = 'u'\fB2\fP
  1539. X(A)    Faint
  1540. X.TP 20
  1541. X\h'\w'ESC Ps = 'u'\fB3\fP
  1542. X(A)    \fIStandout\fP Mode (ANSI: Italicized)
  1543. X.TP 20
  1544. X\h'\w'ESC Ps = 'u'\fB4\fP
  1545. X    Underlined
  1546. X.TP 20
  1547. X\h'\w'ESC Ps = 'u'\fB5\fP
  1548. X    Blinking
  1549. X.TP 20
  1550. X\h'\w'ESC Ps = 'u'\fB7\fP
  1551. X    Negative Image
  1552. X.TP 20
  1553. X\h'\w'ESC Ps = 'u'\fB22\fP
  1554. X(A)    Normal Intensity
  1555. X.TP 20
  1556. X\h'\w'ESC Ps = 'u'\fB23\fP
  1557. X(A)    \fIStandout\fP Mode off (ANSI: Italicized off)
  1558. X.TP 20
  1559. X\h'\w'ESC Ps = 'u'\fB24\fP
  1560. X(A)    Not Underlined
  1561. X.TP 20
  1562. X\h'\w'ESC Ps = 'u'\fB25\fP
  1563. X(A)    Not Blinking
  1564. X.TP 20
  1565. X\h'\w'ESC Ps = 'u'\fB27\fP
  1566. X(A)    Positive Image
  1567. X.TP 20
  1568. X.B "ESC [ \fPPn\fB g"
  1569. X    Tab Clear
  1570. X.TP 20
  1571. X\h'\w'ESC 'u'Pn = None or \fB0\fP
  1572. X    Clear Tab at Current Position
  1573. X.TP 20
  1574. X\h'\w'ESC Ps = 'u'\fB3\fP
  1575. X    Clear All Tabs
  1576. X.TP 20
  1577. X.B "ESC [ \fPPn\fB ; \fPPn\fB r"
  1578. X(V)    Set Scrolling Region
  1579. X.TP 20
  1580. X.B "ESC [ \fPPn\fB I"
  1581. X(A)    Horizontal Tab
  1582. X.TP 20
  1583. X.B "ESC [ \fPPn\fB Z"
  1584. X(A)    Backward Tab
  1585. X.TP 20
  1586. X.B "ESC [ \fPPn\fB L"
  1587. X(A)    Insert Line
  1588. X.TP 20
  1589. X.B "ESC [ \fPPn\fB M"
  1590. X(A)    Delete Line
  1591. X.TP 20
  1592. X.B "ESC [ \fPPn\fB @"
  1593. X(A)    Insert Character
  1594. X.TP 20
  1595. X.B "ESC [ \fPPn\fB P"
  1596. X(A)    Delete Character
  1597. X.TP 20
  1598. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB h"
  1599. X    Set Mode
  1600. X.TP 20
  1601. X.B "ESC [ \fPPs\fB ;\fP...\fB; \fPPs\fB l"
  1602. X    Reset Mode
  1603. X.TP 20
  1604. X\h'\w'ESC 'u'Ps = \fB4\fP
  1605. X(A)    Insert Mode
  1606. X.TP 20
  1607. X\h'\w'ESC Ps = 'u'\fB?3\fP
  1608. X(V)    Change Terminal Width
  1609. X.TP 20
  1610. X\h'\w'ESC Ps = 'u'\fB?5\fP
  1611. X(V)    Visible Bell (\fIOn\fP followed by \fIOff\fP)
  1612. X.TP 20
  1613. X\h'\w'ESC Ps = 'u'\fB?6\fP
  1614. X(V)    \fIOrigin\fP Mode
  1615. X.TP 20
  1616. X\h'\w'ESC Ps = 'u'\fB?7\fP
  1617. X(V)    \fIWrap\fP Mode
  1618. X.TP 20
  1619. X.B "ESC [ 5 i"
  1620. X(A)    Start relay to printer (ANSI Media Copy)
  1621. X.TP 20
  1622. X.B "ESC [ 4 i"
  1623. X(A)    Stop relay to printer (ANSI Media Copy)
  1624. X.fi
  1625. X.SH FILES
  1626. X.nf
  1627. X.ta 2i
  1628. X$SYSSCREENRC
  1629. X.br
  1630. X/local/etc/screenrc          \fIscreen\fP initialization commands
  1631. X.br
  1632. X$ISCREENRC
  1633. X.br
  1634. X$SCREENRC
  1635. X.br
  1636. X$HOME/.iscreenrc
  1637. X.br
  1638. X$HOME/.screenrc      Read in after /usr/local/etc/screenrc
  1639. X.br
  1640. X$ISCREENDIR/S-<login>
  1641. X.br
  1642. X$SCREENDIR/S-<login>
  1643. X.br
  1644. X/local/screens/S-<login>          Socket directories (default)
  1645. X.br
  1646. X/usr/tmp/screens/S-<login>          Alternate socket directories.
  1647. X.br
  1648. X<socket directory>/.termcap          Written by the "termcap" output function
  1649. X.br
  1650. X/usr/tmp/screens/screen-exchange          or
  1651. X.br
  1652. X/tmp/screen-exchange          \fIscreen\fP `interprocess communication buffer'
  1653. X.br
  1654. hardcopy.[0-9]      Screen images created by the hardcopy function
  1655. X.br
  1656. screenlog.[0-9]      Output log files created by the log function
  1657. X.br
  1658. X/usr/lib/terminfo/?/*           or
  1659. X.br
  1660. X/etc/termcap      Terminal capability databases
  1661. X.br
  1662. X/etc/utmp      Login records
  1663. X.br
  1664. X$LOCKPRG      Program that locks a terminal.
  1665. X.fi
  1666. X.SH "SEE ALSO"
  1667. termcap(5), utmp(5), vi(1), captoinfo(1), tic(1)
  1668. X.SH AUTHORS
  1669. Originally created by Oliver Laumann, this latest version was
  1670. produced by Wayne Davison, Juergen Weigert and Michael Schroeder.
  1671. X.SH CONTRIBUTORS
  1672. Bart Schaefer,
  1673. Patrick Wolfe,
  1674. Nathan Glasser,
  1675. Larry Virden,
  1676. Howard Chu,
  1677. Toerless Eckert, 
  1678. Rudolf Koenig.
  1679. X.SH VERSION
  1680. This is version 3.0. It's roots are a merge of version custom version
  1681. X2.3PR7 by Wayne Davison
  1682. and several enhancements to Oliver Laumann's version 2.0. Note that all versions
  1683. numbered 2.x are copyright by Oliver Laumann. 
  1684. X
  1685. X.SH BUGS
  1686. X`dm' (delete mode), `xn', and `xs' are not handled
  1687. correctly (they are ignored).
  1688. X.PP
  1689. The \fIGR\fP set of ISO 2022 is not supported.
  1690. X.PP
  1691. There is no keyboard input translation to VT100 sequences.
  1692. X.PP
  1693. It is not possible to change the environment variable $TERMCAP when 
  1694. reattaching under a different terminal type.
  1695. X.PP
  1696. The support of terminfo based systems is very limited. Adding extra
  1697. capabilities to $TERMCAP may not have any effects.
  1698. X.PP
  1699. X.I Screen
  1700. does not make use of hardware tabs.
  1701. X.PP
  1702. X.I Screen
  1703. must be installed as set-uid with owner root in order to be able
  1704. to correctly change the owner of the tty device file for each
  1705. window.
  1706. Special permission may also be required to write the file \*Q/etc/utmp\*U.
  1707. X.PP
  1708. XEntries in \*Q/etc/utmp\*U are not removed when
  1709. X.I screen
  1710. is killed with SIGKILL.
  1711. This will cause some programs (like "w" or "rwho")
  1712. to advertise that a user is logged on who really isn't.
  1713. END_OF_FILE
  1714. if test 61578 -ne `wc -c <'screen.1'`; then
  1715.     echo shar: \"'screen.1'\" unpacked with wrong size!
  1716. fi
  1717. # end of 'screen.1'
  1718. fi
  1719. echo shar: End of archive 6 \(of 8\).
  1720. cp /dev/null ark6isdone
  1721. MISSING=""
  1722. for I in 1 2 3 4 5 6 7 8 ; do
  1723.     if test ! -f ark${I}isdone ; then
  1724.     MISSING="${MISSING} ${I}"
  1725.     fi
  1726. done
  1727. if test "${MISSING}" = "" ; then
  1728.     echo You have unpacked all 8 archives.
  1729.     rm -f ark[1-9]isdone
  1730. else
  1731.     echo You still need to unpack the following archives:
  1732.     echo "        " ${MISSING}
  1733. fi
  1734. ##  End of shell archive.
  1735. exit 0
  1736.